# -*- coding: utf-8 -*-
from openerp import models, fields,api
import sys
reload(sys)
sys.setdefaultencoding('utf8')


class gmq_bs_student(models.Model):
    """
    用户
    """
    _name = 'gmq.bs.student'
    _inherit = ['mail.thread']
    _descripton = '用户'
    _rec_name = 'name'

    name = fields.Char(u'姓名', track_visibility='onchange')
    password = fields.Char(u"密码",  track_visibility='onchange')
    student_id = fields.Char(u'学号',  track_visibility='onchange')
    zy = fields.Char(u'专业')
    jf = fields.Integer(u'积分',default=0)
    jf_ref = fields.One2many('gmq.bs.jfb','student_ref',u'积分详情')
    yyd_ref = fields.One2many('gmq.bs.yyd','user_ref',u'预约详情')
    sc_time = fields.Datetime(string=u'时长')





